package com.jerry.springcloud.service;

import com.jerry.springcloud.entity.CommonResult;
import com.jerry.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentFeignService {
    @Override
    public CommonResult create(Payment payment) {
        return null;
    }

    @Override
    public CommonResult getPaymentById(Long id) {
        return null;
    }

    @Override
    public CommonResult getPaymentList() {
        return null;
    }

    @Override
    public String paymentInfo_zipkin() {
        return null;
    }

    @Override
    public String paymentInfo_OK(Long id) {
        StringBuffer sb = new StringBuffer();
        sb.append("消费者 ****** paymentInfo_OK ");
        return sb.toString();
    }

    @Override
    public String paymentInfo_Timeout(Long id) {
        StringBuffer sb = new StringBuffer();
        sb.append("消费者 ****** paymentInfo_Timeout ****** ");
        sb.append("id==="+id);
        return sb.toString();
    }

    @Override
    public String paymentInfo_Error(Long id) {
        StringBuffer sb = new StringBuffer();
        sb.append("消费者 ****** paymentInfo_Error ****** ");
        sb.append("id==="+id);
        return sb.toString();
    }

    @Override
    public String paymentInfo_CircuitBreaker(Long id) {
        StringBuffer sb = new StringBuffer();
        sb.append("消费者 ****** paymentInfo_CircuitBreaker ****** ");
        sb.append("id==="+id);
        return sb.toString();
    }

}
